Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Scroll Lo-Fi

scroll.in/lofi or lofi.scroll.team is a calm, slow-paced news digest for the day, with a lo-fi music background.

It’s one of the formats we came up with while experimenting with different formats for news digests.

Get the backend logic here and here is the fully vibecoded frontend which you can open in browser directly with .html extension.

Tech

  • BAML for type-safe text generation and summarization.
  • FastAPI for backend API.
  • Vue.js for frontend.
  • ElevenLabs for text-to-speech.
  • Suno for music generation.

Learnings

Multiple Languages

We experimented with Hindi and Bengali languages, but the quality of the generated audio was not good enough. Also ElevenLab’s pricing makes it expensive to generate audio for all the articles in multiple languages. So we decided to stick with English for now. There’s currently no good-enough alternatives to ElevenLabs for text-to-speech.

BAML as agentic framework

While the concept of BAML is unique and theoritically powerful, it comes with minor inconveniences like having to pass API keys via environment variables, dealing with compatibility issues with different versions of the library, forgetting to compile etc.

I (Arijit) personally found PydanticAI much more practical and easier to work with.